/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_discount_express.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_DISCOUNT_EXPRESS
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_discount_express.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_DISCOUNT_EXPRESS::CTable_PPM_DISCOUNT_EXPRESS( )
 :NPCRecordSet( )
{
  setTableName( "PPM_DISCOUNT_EXPRESS" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  PRICING_SECTION_CD.setField( "PRICING_SECTION_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_SECTION_CD );
  DISCOUNT_EXPRESS_ID.setField( "DISCOUNT_EXPRESS_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( DISCOUNT_EXPRESS_ID );
  DISCOUNT_METHOD_ID.setField( "DISCOUNT_METHOD_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( DISCOUNT_METHOD_ID );
  RATABLE_RESOURCE_ID.setField( "RATABLE_RESOURCE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( RATABLE_RESOURCE_ID );
  START_REF_VALUE_ID.setField( "START_REF_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( START_REF_VALUE_ID );
  END_REF_VALUE_ID.setField( "END_REF_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( END_REF_VALUE_ID );
  PRICING_SECTION_ID.setField( "PRICING_SECTION_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_SECTION_ID );
  DISCOUNT_RATE_VALUE_ID.setField( "DISCOUNT_RATE_VALUE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( DISCOUNT_RATE_VALUE_ID );
  FIXED_VALUE_ID.setField( "FIXED_VALUE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( FIXED_VALUE_ID );
  CALC_PRIORITY.setField( "CALC_PRIORITY", DATA_DOUBLE, 22, 0 );
  makeTableItem( CALC_PRIORITY );
}


CTable_PPM_DISCOUNT_EXPRESS::CTable_PPM_DISCOUNT_EXPRESS( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_DISCOUNT_EXPRESS" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  PRICING_SECTION_CD.setField( "PRICING_SECTION_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_SECTION_CD );
  DISCOUNT_EXPRESS_ID.setField( "DISCOUNT_EXPRESS_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( DISCOUNT_EXPRESS_ID );
  DISCOUNT_METHOD_ID.setField( "DISCOUNT_METHOD_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( DISCOUNT_METHOD_ID );
  RATABLE_RESOURCE_ID.setField( "RATABLE_RESOURCE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( RATABLE_RESOURCE_ID );
  START_REF_VALUE_ID.setField( "START_REF_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( START_REF_VALUE_ID );
  END_REF_VALUE_ID.setField( "END_REF_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( END_REF_VALUE_ID );
  PRICING_SECTION_ID.setField( "PRICING_SECTION_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_SECTION_ID );
  DISCOUNT_RATE_VALUE_ID.setField( "DISCOUNT_RATE_VALUE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( DISCOUNT_RATE_VALUE_ID );
  FIXED_VALUE_ID.setField( "FIXED_VALUE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( FIXED_VALUE_ID );
  CALC_PRIORITY.setField( "CALC_PRIORITY", DATA_DOUBLE, 22, 0 );
  makeTableItem( CALC_PRIORITY );
}

CTable_PPM_DISCOUNT_EXPRESS::~CTable_PPM_DISCOUNT_EXPRESS( )
{
    close();
}

